package me.yushuai.wukong.base.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * 新建Conf
 *
 * @author zhoushuai@189.cn
 * @since 2022-11-15
 */
@Data
public class CreateConfDTO {

    /**
     * 配置项编号
     */
    @Null(message = "conf.confItem.itemId.Null")
    private Long id;

    /**
     * 配置的业务Id
     */
    @NotNull(message = "conf.confItem.itemCode.NotNull")
    @Length(max = 40, message = "conf.confItem.itemCode.Length")
    private String bizId;

    /**
     * 系统配置ID
     */
    @NotNull(message = "conf.confItem.confId.NotNull")
    private Long groupId;

    /**
     * 中文描述
     */
    @NotEmpty(message = "conf.confItem.itemNamCh.NotEmpty")
    @Length(max = 40, message = "conf.confItem.ItemNameCh.Length")
    private String confNameC;

    /**
     * 英文描述
     */
    @NotEmpty(message = "conf.confItem.itemNamEn.NotEmpty")
    @Length(max = 40, message = "conf.confItem.ItemNameEn.Length")
    private String confNameE;

    /**
     * 显示顺序
     */
    @Min(value = 0, message = "conf.confItem.showSequence.Min")
    @Min(value = 99, message = "conf.confItem.showSequence.Max")
    private Long showSequence;

    private String value1;

    private String value2;

    /**
     * 自定义1
     */
    @Length(max = 40, message = "conf.confItem.udf1.Length")
    private String udf1;

    /**
     * 自定义2
     */
    @Length(max = 40, message = "conf.confItem.udf2.Length")
    private String udf2;

    /**
     * 自定义3
     */
    @Length(max = 40, message = "conf.confItem.udf3.Length")
    private String udf3;

}
